package com.centerm.eterm.module;

import com.centerm.eterm.ui.op.G3Network;

public class DummyModem implements G3Modem
{
	static String	Provider		= "N/A";
	static String	Mode			= "N/A N/A";
	static String	Apn[]			=
									{};
	static String	SignalQulity	= "N/A";
	static String	UploadSpeed		= "0.00KB/S";
	static String	DownloadSpeed	= "0.00KB/S";
	static String	Duration		= "00:00:00";
	static String	SentData		= "0.00MB";
	static String	ReceivedData	= "0.00MB";
	static String	Port			= "N/A";
	static String	Manufacturer	= "N/A";
	static String	Model			= "N/A";
	static String	IMEI			= "N/A";
	static String	Revision		= "N/A";
	static String	HWVER			= "N/A";

	public boolean Initialize()
	{
		return true;
	}

	public boolean GetInfo()
	{
		return true;
	}

	public void SetInfo()
	{
		G3Network.providerText.setText(Provider);
		G3Network.modeText.setText(Mode);
		for (int i = 0; i < Apn.length; i++)
		{
			G3Network.apnComboBox.addItem(Apn[i]);
		}
		G3Network.signalText.setText(SignalQulity);
		G3Network.uploadText.setText(UploadSpeed);
		G3Network.downloadText.setText(DownloadSpeed);
		G3Network.durationText.setText(Duration);
		G3Network.sentText.setText(SentData);
		G3Network.receivedText.setText(ReceivedData);
		G3Network.portText.setText(Port);
		G3Network.manufacturerText.setText(Manufacturer);
		G3Network.modelText.setText(Model);
		G3Network.imeiText.setText(IMEI);
		G3Network.firewareText.setText(Revision);
		G3Network.hardwareText.setText(HWVER);
	}

	public boolean Dial(String Apn)
	{
		return true;
	}

	public void HangUp(String Apn)
	{

	}

	public void SetConfig(String User, String Psw, String Apn)
	{

	}
}
